﻿using System;
using System.Collections.Generic;
using System.Text;
using Pixysoft.Framework.Noebe.Consistency;

namespace Pixysoft.Framework.Noebe.Orm
{
    class NoebeCommandHelper
    {
        public static INoebeManager GetNoebeManager()
        {
            return NoebeManagerAdapter.Instances[StringHelper.global_framework_id];
        }

        public static INoebeCommand GetNoebeCommand()
        {
            return GetNoebeManager().NoebeCommand;
        }

        public static IPagingCommand GetPagingCommand()
        {
            return GetNoebeManager().PagingCommand;
        }

        public static ICstNoebeCommand GetCstNoebeCommand()
        {
            return GetCstNoebeManager().CstNoebeCommand;
        }

        public static string CstGroupCode
        {
            get
            {
                return GetCstNoebeManager().GroupCode;
            }
        }

        public static string CstMachineCode
        {
            get
            {
                return GetCstNoebeManager().MachineCode;
            }
        }


        private static ICstNoebeManager GetCstNoebeManager()
        {
            return CstNoebeManagerAdapter.Instances[StringHelper.global_framework_id];
        }
    }
}
